<?php
namespace App\Modules\SubmitForm;
use App\Modules\AdapterApi;
use App\Services\SubmitForm\SubmitFormIndex;
/**
 * Created by PhpStorm.
 * User: 97606
 * Date: 2018/6/12
 * Time: 10:10
 */
class SubmitForm extends AdapterApi
{
    /*后台 - 获取意见建议列表*/
    public function getSuggestionList(): array 
    {
        $data = pick_array($this->postData, ['page','listRows','token','keywords']);
        return SubmitFormIndex::SubmitForm()->getSuggestionList($data);
    }

    /*后台 - 将某个建议标记为已读*/
    public function remarkRead(): array 
    {

        $data = pick_array($this->postData, ['id', 'token']);
        return SubmitFormIndex::SubmitForm()->remarkRead($data);
    }





}